package com.jiulong.bean;

public class MyClass {

    private String name;

    public static void main(String[] args) {

        MyClass m1 = new MyClass();

        MyClass m2 = new MyClass();

        m1.name = m2.name = "m1";

        callMe(m1, m2);

        System.out.println(m1.name + "&" + m2.name);

    }

    private static void callMe(MyClass m1, MyClass m2) {
        m1 = null;
//m1 = m2;
//
//m2.name = "new name";

//m[0].name="11";
    }
}